<template>
  <div id="app">
    <div class="header">
      <header1></header1>
    </div>
    <div class='content'>
      <div class="scollDiv">
        <router-view/>
      </div>
    </div>

    <el-dialog title="帮助"
      :visible.sync="$store.state.helpVisible"
      width="60%">
      <span v-html='$store.state.help'></span>
      <span slot="footer"
        class="dialog-footer">
        <el-button type="primary"
          @click="$store.commit('hideHelp')">确 定</el-button>
      </span>
    </el-dialog>
  </div>
</template>

<script>
import header1 from './components/Header';
import headerStore from './store/HeaderStore';

export default {
  store: headerStore,
  components: {
    header1,
  },
};
</script>

<style>
html,
body {
  overflow: hidden;
  margin: 0;
  padding: 0;
  height: 100%;
  display: block;
}
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
  background-color: #fff;
}

/*定义滚动条轨道 内阴影+圆角*/
::-webkit-scrollbar-track {
  border-radius: 10px;
  background-color: #fff;
}

/*定义滑块 内阴影+圆角*/
::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background-color: #f5f5f5;
}
</style>

<style scoped lang="scss">
#app {
  font-family: "Avenir", Helvetica, Arial, sans-serif;
  overflow-y: hidden;
  height: 100%;
  display: block;
  .header {
    width: 100%;
    position: fixed;
    top: 0px;
    left: 0px;
    right: 0px;
    height: 80px;
  }
  .content {
    margin-top: 80px;
    height: calc(100% - 80px);
    width: 100%;
    display: block;
    overflow: hidden;
    .scollDiv {
      height: 100%;
      height: 100%;
      overflow: auto;
    }
  }
}
</style>
